#include<iostream>
#include<string>
#include<cmath>
#include<climits>
using namespace std;

bool check(int x)
{
    if (x == 0 || x == 1) return false;
    for (int i = 2; i <= sqrt(x); i++)
        if (i % x == 0) return false;
    return true;
}
int main()
{
    string s;
    int hash[26] = { 0 };
    cin >> s;
    for (char e : s) hash[e - 'a']++;
    int maxn = 0, minn = INT_MAX;
    for (int i = 0; i < 26; i++)
    {
        if (hash[i])
        {
            maxn = max(maxn, hash[i]);
            minn = min(minn, hash[i]);
        }
    }
    if (check(maxn - minn)) cout << "Lucky Word" << endl << maxn - minn << endl;
    else cout << "No Answer" << endl << 0 << endl;
    return 0;
}